<div id="steps" class="form complex">
<!-- FUSION CHARTS -->
<script type="text/javascript" src="<?php echo base_url();?>public/js/FusionCharts.js"></script>
<script type="text/javascript" src="<?= base_url() ?>js/wufoo.js"></script>

<?
    //Setting Awal Value Jika Prosedur yang dilakukan adalah prosedur input biasa.
	
	// $value = array(
		// 'username'				=> "",
		// 'role'					=> "",
		// 'lisensi'				=> "",
		// 'legend'				=> "Form Input User",
		// 'info'					=> "Form pendaftaran user",
		// 'act_form'				=> "user/user_management/input_user/"
	// );
	
	//Setting Value pada form Jika melakukan prosedur Edit terhadap data tertentu.
		if($id_lisensi == ""){
			$value['id_lisensi'] = '';
		}
		else $value['id_lisensi'] = $id_lisensi;
		$value['act_form'] = "grafik/jenis_kelamin";
	
	
?>
<?= form_open($value["act_form"]); ?>
<form>
	<fieldset class="step" style="width:810px;">
	<legend style="width:810px;">Grafik Peserta Pelatihan</legend>
	<? if($this->session->userdata('id_hak') == 1){?>
		
		<p>
			<label>Lisensi</label>
			<? 
				//list role user
				$options[''] = "Semua Lisensi";
				foreach($lisensi->result() as $row){
					$options[$row->ID_LISENSI] = $row->NAMA_LISENSI;
				}
				echo form_dropdown('id_lisensi',$options,$value["id_lisensi"],'class="field select"');	
			?>
		</p>
		</br>
		<p>
			<button id="registerButton" type="submit">Tampilkan Data</button>
		</p>
		
	<?}?>
		<p>
                <?php echo $graph ; ?>
        </p>
	</fieldset>
</form>
<?php
echo form_close();
?>
</div>